<template>
	<view class="wrap">
		<jyf-parser :html="content" :tag-style="tagStyle" :selectable="true"></jyf-parser>
	</view>
</template>

<script>
	import jyfParser from "@/components/jyf-parser/jyf-parser";
	import { getAccZxDet } from '@/api/mine/index'
	export default {
		components:{
			jyfParser
		},
		data(){
			return{
				tagStyle: {
					p: 'font-size:18px'+
						'px;font-weight:400;margin-bottom:10px;text-align:justify;word-break:normal;word-wrap:break-word;/* background-color:transparent!important; */color:#333333',
					section: 'font-size:18px'+
						'px;font-weight:400;',
					img: 'max-width:100%!important;height:auto!important;margin:8px auto!important;display:block!important'
				},
				content:'',
				xyId:-1
			}
		},
		onLoad(options){
			this.xyId = options.xyId;
			this.getProtocol();
		},
		methods:{
			getProtocol(){
				uni.showLoading({
					title:'加载中...',
					mask:true
				})
				var field = { id:this.xyId };
				getAccZxDet(field).then(res=>{
					uni.setNavigationBarTitle({
						title:res.data.datas.title
					})
					this.content = res.data.datas.content;
				}).catch(err=>{
					
				});
			}
		}
	}
</script>

<style scoped lang="scss">
	.wrap{
		padding: 15rpx 30rpx;
	}
</style>